<?php
if (!isset($_GET["url"])) {
  $url = '';
} else {
  $url = $_GET["url"];
}
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_HEADER, 0);
$img = curl_exec($ch);
curl_close($ch);
header("Content-type: image/png");
echo $img;
